{{- $context := . }}
{{- range $crd := $context.Values.userAuthn.internal.dexAuthenticatorCRDs }}
---
apiVersion: v1
kind: Service
metadata:
  name: {{ $crd.name }}-dex-authenticator
  namespace: {{ $crd.namespace }}
  {{- include "helm_lib_module_labels" (list $context (dict "app" "dex-authenticator")) | nindent 2 }}
spec:
  ports:
  - name: https
    port: 443
    targetPort: 8443
  selector:
    app: dex-authenticator
    name: {{ $crd.name }}
{{- end }}
